import { Service } from '../core';
class SecurityService extends Service {
	constructor() {
		super(...arguments);
		this.authentication = () =>
			this.request({
				method: this.method.POST,
				url: '/authentication'
			});
		this.authorization = authorities =>
			this.request({
				method: this.method.POST,
				url: '/authorization',
				data: authorities
			});
	}
	create() {
		return this.initTokenInstance('security');
	}
}
export const securityService = new SecurityService();
